let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.AbsAINode = o.AiType = void 0);
                var n = t('AbsActor');
                (function(t) {
                    (t[(t.Search = 1)] = 'Search'),
                    (t[(t.Attack = 2)] = 'Attack'),
                    (t[(t.MoveTo = 3)] = 'MoveTo'),
                    (t[(t.Run = 4)] = 'Run'),
                    (t[(t.Idle = 5)] = 'Idle'),
                    (t[(t.March = 6)] = 'March');
                })(o.AiType || (o.AiType = {}));
                var i = (function() {
                    function t(t) {
                        (this._ctrl = t), (this._actor = t.actor);
                    }
                    return (
                        Object.defineProperty(t.prototype, 'actor', {
                            get: function get() {
                                return this._actor;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (t.prototype.invoke = function(t) {
                            this._ctrl && this._ctrl.invoke(t);
                        }),
                        (t.prototype.update = function(t) {
                            var e = this.actor;
                            if (e) {
                                if (
                                    e.state == n.ActorState.Die ||
                                    e.state == n.ActorState.Recycle
                                )
                                    return;
                                this.onUpdate(t);
                            }
                        }),
                        (t.prototype.onUpdate = function() {}),
                        (t.prototype.condition = function() {
                            var t = this._actor;
                            return !(
                                !t ||
                                t == n.ActorState.Die ||
                                t.state == n.ActorState.Recycle
                            );
                        }),
                        (t.prototype.destroy = function() {
                            this.onDestroy(), (this._actor = null), (this._ctrl = null);
                        }),
                        (t.prototype.onDestroy = function() {}),
                        t
                    );
                })();
                (o.AbsAINode = i), console.log("end");
            module.exports =  e.exports;